package com.five.admin.service.impl;

import com.five.admin.dao.OrdersMapper;
import com.five.admin.service.OrdersService;
import com.five.entity.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: star
 * @Date: 2021-05-21 14:34
 * 订单 service实现类
 */

@Service
public class OrdersServiceImpl implements OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<Orders> fuzzyQueryById(String orderCode, int page) {
        return ordersMapper.fuzzyQueryById(orderCode,(page-1)*8);
    }

    @Override
    public int countOrder(String orderCode) {
        return ordersMapper.countOrder(orderCode);
    }
}


